fix for the compatibility fix
authorStefan Jeske <stefan@src.gnome.org>
Thu, 25 Jun 1998 07:43:27 +0000 (07:43 +0000)
committerStefan Jeske <stefan@src.gnome.org>
Thu, 25 Jun 1998 07:43:27 +0000 (07:43 +0000)
gtk/gtkspinbutton.c

index bec59e7e6e62f59e094766333715477176cab298..ce98510eb6317df4649630cac4a8b760d63408a3 100644 (file)
@@ -1320,7 +1320,8 @@ gtk_spin_button_spin (GtkSpinButton *spin_button,
 
   /* for compatibility with the 1.0.x version of this function */
   if (increment != 0 && increment != adj->step_increment &&
-      increment != adj->page_increment && direction != GTK_SPIN_USER_DEFINED)
+      (direction == GTK_SPIN_STEP_FORWARD ||
+       direction == GTK_SPIN_STEP_BACKWARD))
     {
       if (direction == GTK_SPIN_STEP_BACKWARD && increment > 0)
        increment = -increment;